function taobaoTojd(){
    let ahref = document.getElementById('link')
    ahref.href = 'cart.jd.com'
    ahref.innerHTML = '京东'

    ahref.style.display = 'block'
    ahref.style.border = '2px solid #rgba(0,0,0,0.8)'
    ahref.style.width = '50px'
    ahref.style.height = '20px'
    ahref.style.lineHeight = '50px'
    ahref.style.fontSize = '16px'
    ahref.style.margin = '0 auto'


}

var btn1 = document.getElementById('btn1')
btn1.onclick = function(){
    var a = document.getElementsByTagName('a')[0]
    a.setAttribute("href", "www.jingdong.com")
    a.setAttribute("name","jingdong")
}

